﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Ld.Server.Dto;
using System.ServiceModel;

namespace Ld.Server.Contract
{
    [ServiceContract(CallbackContract = typeof(IDuplexCallback))]
    public interface ILdServerContract
    {
        #region System

        [OperationContract]
        void Logon();

        #endregion

        #region Product

        [OperationContract]
        Product[] LoadAllProduct();

        [OperationContract]
        void SaveProduct(Product entity);

        [OperationContract]
        void UpdateProduct(Product entity);

        [OperationContract]
        void DeleteProduct(Guid id);

        #endregion
    }
}
